const { execSync } = require('child_process')

/**
 * @description: 退出进程
 * @return {void}
*/
function exit() {
  process.exitCode = 1
  process.exit()
}

function command(commandString) {
  return execSync(commandString, { encoding: 'utf-8' })
}

exports.exit = exit
exports.command = command

module.exports = {
  exit,
  command
}